package com.gzhu.knowledgeAdmin.entity;

;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 知识分类表
 * 
 * @author giaogiao
 * @email giaogiao@gmail.com
 * @date 2023-04-22 23:18:59
 */
@Data
@TableName("t_zsfl_t")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_zsfl_t对象", description="知识分类表")
public class Zsfl implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO,value = "F_ID")
	@ApiModelProperty(value = "自增主键")
	@NotNull(groups = {UpdateGroup.class})
	@Null(groups = {AddGroup.class})
	private Integer id;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "分类名称")
	@TableField(value = "F_FLMC")
	private String flmc;

	@Null(groups = {UpdateGroup.class})
	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "上级分类id，一级分类的上级为0")
	@TableField(value = "F_SJFLID")
	private Integer sjflid;

	@Null(groups = {UpdateGroup.class})
	@ApiModelProperty(value = "分类级别")
	@TableField(value = "F_FLJB")
	private Integer fljb;

	@ApiModelProperty(value = "备注")
	@TableField(value = "F_BZ")
	private String bz;

}
